﻿@{
    var sharedCalendars = PageData[0];
}
<div id="sharedCalendars" class="nav-section rounded-top">
    <h3 class="rounded-top border-bottom">
        공유 달력
    </h3>
    <ul>
        @if (sharedCalendars == null) {
            <li class="center">공유 달력 없음</li>
        } else {
            @* 사용자가 소유한 모든 항목을 먼저 표시 *@
            foreach (var calendar in sharedCalendars) {
                <li class="calendar-name rounded-top rounded-bottom" style="background-color: @(calendar.Color); border-color: @ColorHelper.GetBorderFromHtml(calendar.Color)">
                    <a href="@Href("~/Calendar/Info", calendar.CalendarId)" title="달력 정보">@calendar.Name</a>
                </li>
            }
        }
    </ul>
</div>